/**
 * Created by c on 3/29/2017.
 */
var myApp = angular.module("crm", ["ngRoute",  "ngResource"]).config(["$provide", "$compileProvider", "$httpProvider", "$routeProvider",  function ($provide, $compileProvider, $httpProvider, $routeProvider) {

    $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|blob):|wxlocalresource:\//);
    var v = '?v=' + Math.random();




    $provide.provider("$post", {
        $get: ['$http', '$httpParamSerializer', function ($http, $httpParamSerializer) {
            function $post(url, data, config) {
                return $http(angular.extend(config || {}, { url: url, method: 'POST', data: $httpParamSerializer(data), headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }))
            };
            return $post;
        }]
    });

}]);
